package com.example.abstractfactorypattern.factory;

import com.example.abstractfactorypattern.product.fruit.AbstractFruit;
import com.example.abstractfactorypattern.product.vegetable.AbstractVegetable;
import com.example.abstractfactorypattern.product.fruit.SouthernFruit;
import com.example.abstractfactorypattern.product.vegetable.SouthernVegetable;

// 南方农场
public class SouthernFarm implements AbstractFarm{

    // 生产南方水果
    @Override
    public AbstractFruit produceFruit() {
        return new SouthernFruit();
    }

    // 生产南方蔬菜
    @Override
    public AbstractVegetable produceVegetable() {
        return new SouthernVegetable();
    }
}
